import request from "@/axios";
export function login(username = "admin", password = "admin") {
  return request.post("/admin/login", {
    username,
    password,
  });
}
export function getInfo() {
  return request.post("/admin/getinfo");
}
export function logout(token){
  return request.post("/admin/login",{
    token
  });
}
